package cn.ruituo.adv6;

import java.lang.reflect.Constructor;
import java.util.Arrays;
import java.util.Hashtable;
import java.util.Properties;

public class Fanshe {
    public static void main(String[] args) {
        Class c0=int.class;
        Class c02=double.class;
        Class c=Fanshe.class;
        Class c2= Hashtable.class;
        Properties p=new Properties();
        Class c3=p.getClass();//Object
        System.out.println(c2==c3);
        System.out.println(">>>>>>>>>>>>>>>>");
        System.out.println(c2.getSuperclass());;
        System.out.println(Arrays.toString(c2.getInterfaces()));
        System.out.println(Arrays.toString(c2.getDeclaredFields()));;
        c2.getDeclaredMethods();
        //构造方法
        Constructor[] constructors = c2.getDeclaredConstructors();
        for(Constructor cc:constructors)
            System.out.println(cc);
    }
}
